{include file="file:$admin_theme_global_path/_header.tpl"
	tinymce=true tinymce_field_id="metadata_html_content" filebrowser_standalone=true
	masthead=$page_title pageTitle=$page_title current="pageparts_admin_editcontent"}
<div class="grid_4 sidenav">
	<h3>{t}Options{/t}</h3>
	<ul>
		<li><a href="{url}/pageparts/admin/index{/url}">{t}Back to Page List{/t}</a></li>
		<li><a href="{url}/pageparts/admin/listparts/page_id/{$pagepart.page_id}{/url}">{t}Back To {$pagepart.page_title}{/t}</a></li>
		{if $success ne null and $success ne ""}
			<li><a href="{url}/pageparts/admin/editcontent/part_id/{$pagepart.id}{/url}">{t}Continue Editing{/t}</a></li>
		{/if}
	</ul>
</div>
<div class="grid_12">
	{if $content ne null}
		<form id="contentform" action="{$formaction}" method="post" enctype="multipart/form-data">
			{include file="file:`$admin_theme_path`/modules/pageparts/admin/editpart/_`$template_name`.tpl"}
			<p>
				<input type="submit" class="button submit" value="{t}Save Changes{/t}" />
			</p>
		</form>
	{/if}
</div>
{include file="file:$admin_theme_global_path/_footer.tpl"}
